
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Home extends CI_Controller {

 function __construct()
 {
   parent::__construct();
   $this->load->model('user_model','',TRUE);
   if($this->session->userdata("iduser")==null){
	   redirect("login");
	   }
 }

 function index()
 {
  $this->load->view("template/main_view");

 }

 
}
?>

